package com.lin.service;

import com.lin.dto.CarUserBillDTO;
import com.lin.entity.CarUserBill;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lin.vo.DataVO;

import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 林伟鸿
 * @since 2021-11-24
 */
public interface CarUserBillService extends IService<CarUserBill> {

    //用户租车
    public int rentalCar(CarUserBillDTO carUserBillDTO);

    //用户租车情况
    public DataVO<CarUserBill> carUserBillInformation(Integer page, Integer limit, String userId);

    public String sendContract(String orderSerial) throws IOException;

    //管理员查看所有租车情况
    public DataVO<CarUserBill> allCarUserBillsInformation(Integer page, Integer limit);

}
